<template>
    <div id='tmpl'>
        <mt-field label="用户名" placeholder="请输入用户名" v-model="account"></mt-field>
        <mt-field label="密码" placeholder="请输入密码" type="password" v-model="password"></mt-field>
        <mt-button type="danger"size="large" >提交</mt-button>
    </div>
</template>

<script>
import { test} from '../../kits/test.js';
import { Field } from 'mint-ui';
import { setCookie } from '../../kits/cookie.js';
var data;
test.$on("man",function(mandata){
    data=mandata;
     console.log(data.name)
     console.log(data.password)
    
})

export default {
    data() {
        return {
            account: '',
            password: '',
        }
    },
    created(){
       this.getlogin()
    },
    methods:{
       getlogin(){
       this.account=data.name;
       this.password=data.password
       
       }    
    },
}
</script>

<style scoped>


</style>
